package com.hhxyjsj.strategy;

/**
 * web页面背景色动态切换测试类
 * 
 * @author Puhui
 *
 */
public class SwitchWebPageBackColorTest {

	public static void main(String[] args) {
		//切换到蓝色背景
		SwitchWebPageBackColor switchWebPageBackColor = new SwitchWebPageBackColor(new BlueWebPageBackColor());
		switchWebPageBackColor.switchBackColor();
		
		System.out.println("**************************");
		//切换到红色背景
		switchWebPageBackColor = new SwitchWebPageBackColor(new RedWebPageBackColor());
		switchWebPageBackColor.switchBackColor();
	}

}
